﻿using System.Collections.Generic;

namespace ElectronicCommerce.Framework.Web.Mvc
{
    public class MetadataCss : List<MetadataLink>
    {
        public void Insert(string url)
        {
            this.Insert(0, Get(url));
        }

        public void Add(string url)
        {
            this.Add(Get(url));
        }

        public MetadataLink Get(string url)
        {
            return new MetadataLink()
            {
                Type = "text/css",
                Rel = "stylesheet",
                Href = url,
                Media = "all"
            };
        }
    }
}
